package com.yanmaohu.yulia.bean;

import java.util.List;

/**
 * @author Bright Lee
 */
public final class GroupingElementList {

    private int beginIndex;
    private int endIndex;
    private List<GroupingElement> groupingElementList;

    public GroupingElementList(List<GroupingElement> groupingElementList) {
        this.beginIndex = beginIndex;
        this.endIndex = groupingElementList.get(groupingElementList.size() - 1).getEndIndex();
        this.groupingElementList = groupingElementList;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public int size() {
        return groupingElementList.size();
    }

    public GroupingElement get(int index) {
        return groupingElementList.get(index);
    }

}
